package com.asset.dispoal.dataDetail.service.converter;

import com.asset.dispoal.dataDetail.domain.db.entity.SysDataDetail;
import com.asset.dispoal.dataDetail.domain.db.entity.SysDataDetailTemplate;
import com.asset.dispoal.dataDetail.dto.SysDataDetailRequest;
import com.asset.dispoal.dataDetail.dto.SysDataDetailResponse;
import com.asset.dispoal.dataDetail.dto.SysDataDetailTemplateRequest;
import com.asset.dispoal.dataDetail.dto.SysDataDetailTemplateResponse;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * @author qr
 * @date 2022/3/23$
 */
@Mapper
public interface SysDataDetailConverter {

    SysDataDetailConverter INSTANCE = Mappers.getMapper(SysDataDetailConverter.class);

    SysDataDetail reqToDo(SysDataDetailRequest request);

    List<SysDataDetailResponse> doToRes(List<SysDataDetail> requestList);

    SysDataDetailTemplate reqTemplateToDo(SysDataDetailTemplateRequest request);

    List<SysDataDetailTemplateResponse> doTemplateToRes(List<SysDataDetailTemplate> dataDetails);
}
